package org.example.service.impl;

import org.example.dao.FoodTruckDao;
import org.example.dto.NearFoodTruckQurey;
import org.example.dto.NearFoodTruckVO;
import org.example.model.FoodTruck;
import org.example.service.FoodTruckService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FoodTruckServiceImpl implements FoodTruckService {
    @Resource
    private FoodTruckDao foodTruckDao;

    @Override
    public List<FoodTruck> queryByApplicant(String applicant) {
        return foodTruckDao.queryByApplicant(applicant);

    }

    @Override
    public List<FoodTruck> queryByFoodItems(List<String> foodItems) {
        return foodTruckDao.queryByFoodItems(foodItems);
    }

    @Override
    public List<NearFoodTruckVO> nearFoodTruck(NearFoodTruckQurey query) {
        return foodTruckDao.nearFoodTruck(query);
    }
}
